<include file="Layout/header" />
<body>
<div class="breadcrumbs" id="breadcrumbs"> 
  <script type="text/javascript">
							try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
						</script>
  <ul class="breadcrumb">
    <li> <i class="icon-home home-icon"></i> <a href="{:U('Admin/Index/welcome')}">首页</a> </li>
    <li class="active">开奖时间设置</li>
  </ul>
</div>
<div class="page-content">
  <div class="page-header">
    <h1> 彩票管理 <small> <i class="icon-double-angle-right"></i> 开奖时间设置 </small> </h1>
  </div>
  <div class="">
    <div class="tabbable">
      <ul class="nav nav-tabs" id="myTab">
        <foreach name="lottry_array" item="val" key="key">
        <if condition="$key neq 13 && $key neq 16">
          <li>
              <if condition="$key eq $c_id">
             <a class="btn btn-primary" href="{:U('Admin/Lottryodds/open_time',array('c_id'=>$key))}">{$val.text}</a>
              <else />
              <a class="btn btn-info" href="{:U('Admin/Lottryodds/open_time',array('c_id'=>$key))}">{$val.text}</a>
               </if>
          </li>
        </if>
        </foreach>
	
		 
		
      </ul>
      <div class="tab-content">
        <div class="table-responsive dataTables_wrapper"> 
          <!-- <include file="Layout/{$tpl}" />-->
          <form class="form-horizontal" action="{:U('Admin/Lottryodds/change_op_time')}" id="validation-form" method="post" enctype="multipart/form-data">
            <input type="hidden" value="{$c_id}" name="c_id">
            <table class="table table-bordered table-hover table-condensed">
              <tbody>
              
              
                <tr>
                  
                  <td><button type="submit" class="btn btn-sm btn-info">确认修改</button></td>
                </tr>
              </tbody>
            </table>
            <table class="table table-center table-striped table-bordered table-hover dataTable">
              <thead>
                <tr>
                  <th>彩票期号</th>
                  <th>开盘时间</th>
                  <th>封盘时间</th>
                  <th>开奖时间</th>
                  <th>开奖日期</th>
                </tr>
              </thead>
              <tbody>
             
              
				<foreach name="data" item="v" key="k">
                <tr>
                  <td><input id="periods{$k}" name="periods[]" value="<?php echo $v['periods']?>" maxlength="8" style="width:200px;" type="text"</td>
                  <td><input id="kp_time{$k}" name="kp_time[]" value="<?php echo date('Y-m-d H:i:s',$v['kp_time'])?>" class="datetime-picker" style="width:200px;" type="text"></td>
                  <td><input id="fp_time{$k}" name="fp_time[]" value="<?php echo date('Y-m-d H:i:s',$v['fp_time'])?>" class="datetime-picker" style="width:200px;" type="text"></td>
                  <td><input id="kj_time{$k}" name="kj_time[]"value="<?php echo date('Y-m-d H:i:s',$v['kj_time'])?>" class="datetime-picker" style="width:200px;" type="text"></td>
				  <td><?php echo $v['weekday']?></td>
                </tr>
               </foreach> 
             
              </tbody>
            </table>
            <input id="nums" name="nums" value="120" type="hidden">
            
          </form>
        </div>
        
        <!-- /.table-responsive --> 
      </div>
    </div>
  </div>
  <!-- /.table-responsive --> 
</div>

		<script src="/Public/Admin/js/jquery-2.0.3.min.js"></script>

	

<script src="/Public/Admin/js/bootstrap.min.js"></script> 
<script src="/Public/Admin/js/typeahead-bs2.min.js"></script> 

 
<!-- <link href="__ADMIN_CSS__/datepicker.css" rel="stylesheet" />
<script src="__ADMIN_JS__/date-time/bootstrap-datepicker.min.js"></script> -->

<link href="__ADMIN_CSS__/bootstrap-datetimepicker.min.css" rel="stylesheet">
<script src="__ADMIN_JS__/datetimepicker/bootstrap-datetimepicker.min.js"></script>

   
        <script>
			// jQuery(function($) {
			// for (var i = 0; i <10; i++)
   //      {
			// 	$("#kp_time"+i).datepicker({
			// 		showOtherMonths: true,
			// 		selectOtherMonths: false,
					 
			// 	});
			// 	$("#fp_time"+i).datepicker({
			// 		showOtherMonths: true,
			// 		selectOtherMonths: false,
					 
			// 	});
			// 	$("#kj_time"+i).datepicker({
			// 		showOtherMonths: true,
			// 		selectOtherMonths: false,
					 
			// 	});
			// }	
			// })	

      $(function(){
        $('.datetime-picker').datetimepicker({format: 'yyyy-mm-dd hh:ii:00',autoclose: true});
      });
				</script>
</div>
</div>


</body>
</html>